from functools import reduce


def fun01(items):
    n = 0
    for item in items:
        n += item
    return n


l1 = [0, 1, 2, 3, 4]
num01 = fun01(l1)
print(num01)
num02 = reduce(lambda x, y: x + y, l1)
print(num02)
